package com.basic.business.quantityReceived.domain;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import cn.idev.excel.annotation.write.style.ColumnWidth;
import cn.idev.excel.annotation.write.style.HeadFontStyle;
import cn.idev.excel.annotation.write.style.HeadRowHeight;
import com.basic.common.core.domain.BaseEntity;
import com.basic.common.utils.StringUtils;
import com.basic.common.utils.uuid.ULID;
import lombok.Data;

import java.util.List;

/**
 * 接取数量对象 t_quantity_received
 *
 * @author ruize
 * @date 2024-11-27
 */
@Data
@ExcelIgnoreUnannotated
@ColumnWidth(16)
@HeadRowHeight(14)
@HeadFontStyle(fontHeightInPoints = 11)
public class TQuantityReceived extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 用户id */
    @ExcelProperty(value = "用户id")
    private Long userId;

    private Long postId;

    /** 接取数量 */
    @ExcelProperty(value = "接取数量")
    private Integer num;

    /** 备注 */
    private String state;

    private List<Long> postList;

    public void setId(String id) {
        this.id = StringUtils.isNotEmpty(id) ? id : ULID.getId();
    }
}
